package com.ruoyi.sys.assets.service.Impl;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.sys.assets.entity.TbEquipmentParameter;
import com.ruoyi.sys.assets.mapper.TbEquipmentParameterMapper;
import com.ruoyi.sys.assets.service.TbEquipmentParameterService;
import com.ruoyi.sys.assets.vo.TbEquipmentParameterVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class TbEquipmentParameterServiceImpl implements TbEquipmentParameterService {
    @Resource
    private TbEquipmentParameterMapper tbemMapper;
    R  r = new R();
    @Override
    public R<TbEquipmentParameter> getAll(TbEquipmentParameterVO vo) {
        List<TbEquipmentParameter> all = tbemMapper.getAll(vo);
        if (all!= null) {
            r.setCode(0);
            r.setData(all);
            r.setMsg("查询成功");
        }else{
            r.setCode(-1);
        }

        return r;
    }
}
